/*
 * Project: yygh-parent
 *
 * File Created at 2023/7/16
 *
 * 自定义时间格式代替DATE标签：2023-07-16 18:09:18:09
 */
package com.atguigu.yygh.repository;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.model.hosp.Hospital;
import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

/**
 * @author 用户名
 * @Type ScheduleRepository.java
 * @Desc
 * @date 2023/7/16 18:09
 */
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getScheduleByHosScheduleId(String hosScheduleId);

    Schedule findScheduleByHoscodeAndHosScheduleId(String hoscode, String depcode);

    List<Schedule> findScheduleByHoscodeAndDepcodeOrderByWorkDateDesc(String hoscode, String depcode);


    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * <p>
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2023/7/16 用户名 create
 */ 
